import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/common/app_colors.dart';
import 'package:flutter/material.dart';

class NormalBoldListItem extends StatelessWidget {
  final VoidCallback onTap;
  final String title;
  final Color titleColor;
  const NormalBoldListItem({Key key, this.onTap, this.title, this.titleColor}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return PressedOpacityButton(
      color: Colors.white,
      onPressed: onTap,
      padding: EdgeInsets.symmetric(
        horizontal: getDp(35),
        vertical: getDp(24),
      ),
      border: Border(
          bottom: BorderSide(
        color: aceGrayColor,
        width: getDp(0.5),
      )),
      child: Align(
        alignment: Alignment.centerLeft,
        child: Text(
          '$title',
          style: TextStyle(
            color: titleColor??aceBlackColor,
            fontSize: getSp(18),
            fontWeight: FontWeight.w700,
            height: 1,
          ),
        ),
      ),
    );
  }
}
